<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 请求记录 更新
@author WeiXiaoJin
@since 2020-01-19 21:16:09
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求路径 </label>
	<div class="col-md-9">
				<input class="form-control" id="requestUrl" type="text" th:value="${ bean.requestUrl}" name="requestUrl" placeholder="请求路径">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求应用 </label>
	<div class="col-md-9">
				<input class="form-control" id="requestApplication" type="text" th:value="${ bean.requestApplication}" name="requestApplication" placeholder="请求应用">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求IP </label>
	<div class="col-md-9">
				<input class="form-control" id="requestIp" type="text" th:value="${ bean.requestIp}" name="requestIp" placeholder="请求IP">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">响应时间 </label>
	<div class="col-md-9">
				<input class="form-control" id="responseTime" type="text" th:value="${ bean.responseTime}" name="responseTime" placeholder="响应时间">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求用户 </label>
	<div class="col-md-9">
				<input class="form-control" id="requestUserId" type="text" th:value="${ bean.requestUserId}" name="requestUserId" placeholder="请求用户">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件类型 </label>
	<div class="col-md-9">
				<input class="form-control" id="requestType" type="text" th:value="${ bean.requestType}" name="requestType" placeholder="文件类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求用户名 </label>
	<div class="col-md-9">
				<input class="form-control" id="requestUsername" type="text" th:value="${ bean.requestUsername}" name="requestUsername" placeholder="请求用户名">
			</div>
</div>
																				</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
requestUrl: {required:true}
,requestApplication: {required:true}
,requestIp: {required:true}
,responseTime: {required:true}
,requestUserId: {required:true}
,requestType: {required:true}
,requestUsername: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if(result){	
				var modifyUrl = ctx+"base/storage/storageRequests/update" ;
				$.operate.save(modifyUrl , modifyForm.serialize());
			}
	    }
	</script>
</body>
</html>
